package com.ssmdemo.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ssmdemo.pojo.Dept;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DeptMapper extends BaseMapper<Dept> {
    List<Dept> selectDeptPage(@Param("index") Integer index,@Param("size") Integer size);

    List<Dept> selectDeptListByParentId(Integer id);
    int insertDept(Dept dept);
    int updateDept(Dept dept);
}
